# conding = utf-8
from selenium.webdriver.common.by import By
# 左侧菜单栏
left_menu_sys = By.XPATH, "//li//span[text()='报表查询']"
left_menu = By.XPATH, "/html/body/div[1]/section/aside/div/ul/li[7]/ul/li[1]/a"

# 跟据商品信息查询
find_send = By.CLASS_NAME, "ant-input"
find_expected = By.XPATH, "//tr/td[text()='1009']"

find_btn = By.XPATH, "//button[span[text()='查 询']]"

assertion = By.XPATH,"//td/span/a[text()='流水']"
# 跟据仓库名称查询
depot_send = By.XPATH, '//*[@id="app"]/section/section/main/div[2]/div/div/div/div/div[1]/form/div/div[1]/div/div[2]/div/span/div'
depot_btn = By.XPATH, "//div/div/div/div/ul/li[1]"

# 清空仓库名称文本框
depot_clear = By.XPATH,'//*[@id="app"]/section/section/main/div[2]/div/div/div/div/div[1]/form/div/div[1]/div/div[2]/div/span/div/div/div/ul/li[1]/span/i'
# 展开
btn_unfold = By.XPATH, "//a[contains(text(), '展开')]"

# 跟据商品类别查询
category_send = By.XPATH, '/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[1]/form/div/div[5]/div/div[2]/div/span/span'
category_btn = By.XPATH, '/html/body/div[60]/div/div/div/ul/li/span[2]'
# 清空类目文本框
category_element = By.XPATH, "/html/body/div[1]/section/section/main/div[2]/div/div/div/div/div[1]/form/div/div[5]/div/div[2]/div/span/span/span/span[2]"

# 显示零库存
zero_send = By.XPATH, "//div/div/div/div/span/div/div/div/div[@title]"
zero_btn = By.XPATH, "/html/body/div[7]/div/div/div/ul/li[2]"

# 查看流水查询页面
pipelining = By.XPATH, '//*[@id="reportPrint"]/div[1]/div/div/div/div/div/div[2]/table/tbody/tr[1]/td[2]/span'

# 跟据单据编号查询流水信息
pipelining_send = By.XPATH, "//span/input[@placeholder='请输入单据编号']"
pipelining_btn = By.XPATH, "//div/button[@class='ant-btn ant-btn-primary']"
reset = By.XPATH, "//button[span='重 置']"

# 跟据单据时间进行查询
time_btn = By.XPATH, "//form/div/div/div/div/div/span/span/span/input[@placeholder='开始时间']"
time_left = By.XPATH, "//a[@title='上一年 (Control键加左方向键)']"
time_begin = By.XPATH, "/html/body/div[62]/div/div/div/div/div[1]/div[1]/div[2]/div[2]/table/tbody/tr[1]/td[4]"
time_end = By.XPATH, "/html/body/div[62]/div/div/div/div/div[1]/div[2]/div[2]/div[2]/table/tbody/tr[5]/td[5]"
time_element = By.XPATH, '//*[@id="app"]/section/section/main/div[2]/div/div/div/div/div[2]/div/div/div[2]/div/div[2]/div[2]/div[2]/div/div/div/div/div/table/tbody/tr[1]/td[2]/span'

pipelining_detail = By.XPATH, "//div[@role='document'][@class='ant-modal']//div//div//button/span[@class='ant-modal-close-x']"
pipelining_cancel = By.XPATH, '//*[@id="app"]/section/section/main/div[2]/div/div/div/div/div[2]/div/div/div[2]/div/div[2]/div[3]/button'

